#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>          /* See NOTES */
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netinet/if_ether.h>
#include <netinet/in.h>
#include <linux/sockios.h>
#include <net/route.h>
#include <errno.h>
#include <thread>
#include "cam_ctrl.h"

#include "sockgvcp.h"
#include "sockgvsp.h"
using namespace std;

char m_szLocalMac[32];
uint32 m_dwLocalPort=3956;
//uint8 m_LocalMacAddr[ETH_ALEN];
uint8 m_RemoteMacAddr[ETH_ALEN];
uint32 m_dwBroadcast = 0;

int main()
{	
	printf("Linescan Cam V1.0\n");

	cam_init();
	thread t1(gvcp_loop);
	thread t2(gvsp_loop);
	t2.join();
	t1.join();
}


